#if !defined(AFX_AWTTEXTAREAPEER_H__49816F4A_F04F_4691_9D87_358C0AE1766F__INCLUDED_)
#define AFX_AWTTEXTAREAPEER_H__49816F4A_F04F_4691_9D87_358C0AE1766F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// AWTTextAreaPeer.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// AWTTextAreaPeer window

class AFX_EXT_CLASS AWTTextAreaPeer : public CEdit,
                        public AWTTextComponentPeer
{
DECLARE_DYNAMIC(AWTTextAreaPeer)
// Construction
public:
	AWTTextAreaPeer(AWTComponent* comp);

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(AWTTextAreaPeer)
	//}}AFX_VIRTUAL

public:
//AWTTextComponentPeer interface
  virtual void getText(CString& text);
  virtual void setText(CString& text);
  virtual void setEditable(BOOL b);
  virtual int  getSelectionStart();
  virtual int  getSelectionEnd();
  virtual void select(int start, int end);
  virtual void setCaretPosition(int pos);
  virtual int  getCaretPosition();

// Implementation
public:
	virtual ~AWTTextAreaPeer();

	// Generated message map functions
protected:
	//{{AFX_MSG(AWTTextAreaPeer)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDestroy();
	afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
	afx_msg void OnSetFocus(CWnd* pOldWnd);
	afx_msg void OnKillFocus(CWnd* pNewWnd);
	afx_msg void OnChange();
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()

	AWTComponent* m_comp;
	CWnd* m_AWTWindow;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_AWTTEXTAREAPEER_H__49816F4A_F04F_4691_9D87_358C0AE1766F__INCLUDED_)
